package com.xfunc.ok.dmok;

public class DownloadInfo {
    String url;
    String fileName;
    String downloadStatus;
    long total= 0;
    long progress= 0;
    long updateTime  = 0;
    long completeTime  = 0;
    Boolean isSupportBreakpoint = false;

    public DownloadInfo(String url) {
        this.url = url;
        this.fileName = url.substring(url.lastIndexOf("/"));
    }

    public DownloadInfo(String url, String downloadStatus) {
        this.url = url;
        this.downloadStatus = downloadStatus;
        this.fileName = url.substring(url.lastIndexOf("/"));
    }


}
